﻿<phone:PhoneApplicationPage 
    xmlns:Page="clr-namespace:Tfs.OnTheRoad.Pages"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Controls="clr-namespace:Tfs.OnTheRoad.Controls"
    xmlns:converters="clr-namespace:Tfs.OnTheRoad.Converters"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
	x:Class="Tfs_OnTheRoad.HelpPage"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait" Orientation="Portrait"
	shell:SystemTray.IsVisible="True">
    <!--Enabling Page Transitions-->
    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Grid.RowSpan="2" Margin="10">
            <Image  Source="/Images/HelpBG.png">
            </Image>
        </StackPanel>

        <Button Grid.Row="1" Style="{StaticResource ButtonStyle}" Width="100" Height="80" Margin="-150,310,200,0" x:Name="OKButton"  Click="Button_Click" Content="OK"></Button>

        <ScrollViewer Grid.Row="0" Grid.RowSpan="2" Margin="15,215,15,100" Height="500">
            <StackPanel ScrollViewer.VerticalScrollBarVisibility="Visible" >
                <TextBlock Opacity="1" FontSize="26" TextWrapping="Wrap" Foreground="{StaticResource PhoneForegroundBrush}">
                This App uses the "OData for Team Foundation Server 2010" to connect to the TFS.
                </TextBlock>
                <TextBlock FontSize="26" FontWeight="Bold" Foreground="{StaticResource PhoneAccentBrush}">
                 If you want to access CodePlex TFS
                </TextBlock>
                <TextBlock Margin="0,0,0,0"  FontSize="22" Opacity="1" TextWrapping="Wrap" Foreground="{StaticResource PhoneForegroundBrush}">
                    <TextBlock.Inlines>
                        <Run>
                    Microsoft already hosted a CodePlex TFS ODATA Service under</Run>
                        <LineBreak/>
                        <Run>
                    https://codeplexodata.cloudapp.net/. 
                    Besides your TFS username/password you need to know the project collection 
                    that you are planning to connect to. Click on the link bellow to to understand better how 
                    to connect to CodePlex TFS.
                        </Run>
                        </TextBlock.Inlines>
                </TextBlock>
                <HyperlinkButton Foreground="{StaticResource PhoneAccentBrush}" NavigateUri="https://codeplexodata.cloudapp.net/" Content="CodePlex OData TFS Information" TargetName="_blank"/>
                <TextBlock Margin="0,10,0,0" FontSize="26" FontWeight="Bold" Foreground="{StaticResource PhoneAccentBrush}">
                 If you want to access your Own TFS
                </TextBlock>
                <TextBlock Margin="0"  FontSize="22" Opacity="1" TextWrapping="Wrap" Foreground="{StaticResource PhoneForegroundBrush}">
                        You will need to install the TFS Odata Service to your environment 
                        and publish it using IIS. To have more information on seting up your 
                        environment,
                </TextBlock>
                <HyperlinkButton Foreground="{StaticResource PhoneAccentBrush}" NavigateUri="http://blogs.msdn.com/b/briankel/archive/2011/04/07/odata-service-for-team-foundation-server-2010.aspx" Content="Click here" TargetName="_blank"/>
                <TextBlock Margin="0,10,0,0"  FontSize="22" TextWrapping="Wrap" Foreground="{StaticResource PhoneAccentBrush}">
                        Currently TFS ODATA Services is on Beta stage. Some more information can be found on my site.
                </TextBlock>
                <HyperlinkButton Foreground="{StaticResource PhoneAccentBrush}" NavigateUri="http://pcbl.de/tfs-on-the-road/" Content="pcbl.de/tfs-on-the-road/" TargetName="_blank"/>
                <TextBlock> </TextBlock>
                <TextBlock FontSize="22" TextWrapping="Wrap" Foreground="{StaticResource PhoneAccentBrush}">Just let me know about your User experience! Get in touch!</TextBlock>
                <TextBlock Margin="0,0,0,50"> </TextBlock>

            </StackPanel >
        </ScrollViewer>
    </Grid>
</phone:PhoneApplicationPage>
